package net.mthotel.repository;

import net.mthotel.entity.User;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by dengry on 15/3/21.
 */
public interface UserRepository extends
        CrudRepository<User, Integer> {
    public User getUserByUsernameAndPassword(String username, String password);

    public User getUserByUsername(String username);
}
